<!-- INCLUDE sv_overall_header.html -->

<script type="text/javascript" src="ofc/js/json/json2.js"></script>
<script type="text/javascript" src="ofc/js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("ofc/open-flash-chart.swf", "my_chart", "950", "550", "9.0.0");
</script>

<script type="text/javascript">

function ofc_ready()
{
    //alert('ofc_ready');
}

function open_flash_chart_data()
{
    //alert( 'reading data' );
    return JSON.stringify(data);
}

function findSWF(movieName) {
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window[movieName];
  } else {
    return document[movieName];
  }
}
    
var data = {JASON_STRING};

</script>

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
		<fieldset class="quick-login">
			<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
			{S_LOGIN_REDIRECT}
		</fieldset>
	</form>
<!-- ENDIF -->




<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Query corp - holders and transactions </h2> 
	</div>
	<form method="POST" action={S_ADM_QUERY_CORP_ACTION}>	
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>Corp ID</p></td>
			<td><p></p></td>
		<tr>
		<tr>
			<td><p><input name="corp_id" type="text"></input></p></td>
			<td><p><input name=submit type="submit"></input></p></td>
			<input name="mode" value="query_corp" type="hidden"></input>
		<tr>
	</table>
	</form>
		
</div>


<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>{S_CORP_ID}  Holder List </h2> 
	</div>
	<!-- IF S_HOLDER_LIST  -->
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>{L_SV_USER_NAME}</p></td>
			<td><p>{L_SV_STOCK_ID}</p></td>
			<td><p>{L_SV_CORP_NAME}</p></td>
			<td><p>{L_SV_NUMBER}</p></td>
			<td><p>{L_SV_NUMBER_TO_SELL}</p></td>			
			<td><p>{L_SV_COST}</p></td>
			
		</tr>
		<!-- BEGIN holder_list -->
		<tr>
			<td><p><a href="{S_QUERY_USER}&user_id={holder_list.USER_ID}">{holder_list.USERNAME}</a></p></td>
			
			<td><p>{holder_list.CORP_ID}</p></td>
			<td><p>{holder_list.CORP_NAME}</p></td>
			<td><p>{holder_list.NUMBER}</p></td>
			<td><p>{holder_list.NUMBER_TO_SELL}</p></td>
			<td><p>{holder_list.COST}</p></td>
			
		</tr>
		<!-- END holder_list -->
	</table>	
	<!-- ENDIF -->
</div>

<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>{S_CORP_ID}  {L_SV_HISTORY} </h2> 
	</div>
	<!-- IF S_TRANSACTION_LIST  -->
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>{L_SV_USER_NAME}</p></td>
			<td><p>{L_SV_TYPE}</p></td>
			<td><p>{L_SV_STOCK_ID}</p></td>
			<td><p>{L_SV_CORP_NAME}</p></td>
			<td><p>{L_SV_NUMBER}</p></td>
			<td><p>{L_SV_REQUEST_TIME}</p></td>
			<td><p>{L_SV_DEAL_TIME}</p></td>
			<td><p>{L_SV_PRICE}</p></td>
			<td><p>{L_SV_NOTE}</p></td>
			<td><p>{L_SV_CHECK_TIME}</p></td>
			<td><p>{L_SV_CHECK_STATUS}</p></td>
		</tr>
		<!-- BEGIN transaction_list -->
		<tr>
			<td><p><a href="{S_QUERY_USER}&user_id={transaction_list.USER_ID}">{transaction_list.USERNAME}</a></p></td>
			<td><p>
			<!-- IF transaction_list.ACTION eq buy -->     {L_SV_ACTION_BUY}    <!-- ENDIF -->
			<!-- IF transaction_list.ACTION eq sell -->    {L_SV_ACTION_SELL}     <!-- ENDIF -->
			<!-- IF transaction_list.ACTION eq to_buy -->  {L_SV_ACTION_TO_BUY}      <!-- ENDIF -->
			<!-- IF transaction_list.ACTION eq to_sell --> {L_SV_ACTION_TO_SELL}       <!-- ENDIF -->			
			<!-- IF transaction_list.ACTION eq to_buy_deleted -->  {L_SV_ACTION_TO_BUY_DELETED}      <!-- ENDIF -->
			<!-- IF transaction_list.ACTION eq to_sell_deleted --> {L_SV_ACTION_TO_SELL_DELETED}       <!-- ENDIF -->			
			</p></td>
			<td><p>{transaction_list.CORP_ID}</p></td>
			<td><p>{transaction_list.CORP_NAME}</p></td>
			<td><p>{transaction_list.NUMBER}</p></td>
			<td><p>{transaction_list.REQUEST_TIME}</p></td>
			<td><p><!-- IF transaction_list.DEAL_TIME eq 0 -->   {L_SV_DEAL_NOT_DONE}   <!-- ELSE -->    {transaction_list.DEAL_TIME}      <!-- ENDIF --></p></td>
			<td><p><!-- IF transaction_list.PRICE eq 0 -->   --   <!-- ELSE -->    {transaction_list.PRICE}      <!-- ENDIF --></p></td>
			<td><p>{transaction_list.NOTE}</p></td>
			<td><p><!-- IF transaction_list.CHECK_TIME eq 0 -->      <!-- ELSE -->    {transaction_list.CHECK_TIME}      <!-- ENDIF --></p></td>
			<td><p>
				<!-- IF transaction_list.CHECK_STATUS eq corp_id_not_valid -->	{L_SV_NO_THIS_CORP_ID}    <!-- ENDIF -->
				<!-- IF transaction_list.CHECK_STATUS eq cannot_get_price -->		{L_SV_CANNOT_GET_PRICE}    <!-- ENDIF -->
				<!-- IF transaction_list.CHECK_STATUS eq volume_not_enough -->	{L_SV_VOLUME_NOT_ENOUGH}    <!-- ENDIF -->
				<!-- IF transaction_list.CHECK_STATUS eq money_not_enough -->     {L_SV_MONEY_NOT_ENOUGH}    <!-- ENDIF -->				
				<!-- IF transaction_list.CHECK_STATUS eq '' -->    {L_SV_WAITING_FOR_CHECK}   <!-- ENDIF -->				
			</p></td>
		</tr>
		<!-- END transaction_list -->
	</table>	
	<!-- ENDIF -->
</div>

<!-- INCLUDE sv_overall_footer.html -->